﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Fred.Services
{
    /// <summary>
    /// LogService - Log File and Log Database maintenance tasks
    /// </summary>
    internal class LogService : Service 
    {
        /// <summary>
        /// Constructor
        /// </summary>
        public LogService()
        {
            DoWork += LogService_DoWork;
        }

        /// <summary>
        /// Called when this service is started
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void LogService_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
        {
            while(true)
            {
                if (CancellationPending)
                    break;

                // Do the actual work here
            }
        }
    }
}
